package com.rainng.coursesystem.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.rainng.coursesystem.model.entity.MemberEntity;
import com.rainng.coursesystem.model.vo.response.MemberInfoVO;
import com.rainng.coursesystem.model.vo.response.table.MemberItemVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface MemberMapper extends BaseMapper<MemberEntity> {
    Integer getAreaIdById(Integer memberId);

    Integer getBudgetById(Integer memberId);

    Integer count(@Param("activityName")String activityName,@Param("teamName") String teamName, @Param("name")String name);

    IPage<MemberItemVO> getPage(IPage<MemberItemVO> page, @Param("activityName")String activityName, @Param("teamName") String teamName, @Param("name") String name);

    MemberInfoVO getMemberInfoById(Integer memberId);
}
